import Layout from '@/layout'

const flatUserRouter = {
  path: '/amszs/flatUser/',
  component: Layout,
  redirect: '/amszs/flatUser/index',
  name: 'flatUser',
  alwaysShow: true,
  meta: {
    title: '账号列表',
    icon: 'clipboard'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/amszs/flatUser'),
      name: 'flatUserindex',
      meta: { title: '账号列表' }
    },
    //添加账号
    {
      path: 'userAdd',
      component: () => import('@/views/amszs/flatUser/userAdd.vue'),
      name: 'userAdd',
      meta: { title: '添加账号' }
    },
    //查看账号
    {
      path: 'userDetail',
      component: () => import('@/views/amszs/flatUser/userDetail.vue'),
      name: 'userDetail',
      meta: { title: '账号详情' }
    },
    //编辑账号
    {
      path: 'userEdit',
      component: () => import('@/views/amszs/flatUser/userEdit.vue'),
      name: 'userEdit',
      meta: { title: '账号编辑' }
    },
  ]
}

export default flatUserRouter